<include file="Public:header"/>

   	<table border="0" width="100%" style="border-collapse: collapse; border: 1px ridge #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" height="52">
		<tr>
			<td width="57">
			<p align="right">分类：</td>
			<td><select size="1" name="cat">
			<option value="">全部分类</option>
<volist name="cat" id="cat">
			<option value="{$cat.cat_id}">{$cat.fullname}</option>
</volist>
			</select></td>
			<td>
			<p align="right">上架：</td>
			<td><select size="1" name="ispost">
			<option value="">全部</option>
			<option value="0">已上架</option>
			<option value="1">未上架</option>
			</select></td>
			<td>
			<p align="right">商品编号：</td>
			<td><input type="text" name="bn" size="20"></td>
			<td>
			<p align="right">商品名称：</td>
			<td><input type="text" name="goods_name" size="20"></td>
		</tr>
	</table>
<script src="__APP__/statics/jquery-1.9.1.min.js" type="text/javascript"></script>
<script>
$(function(){
     $("#list").attr("src","__URL__/goods_list");
	 $("[name=cat]").blur(function(){
	    var cat=$("[name=cat]").val();
		var post=$("[name=ispost]").val();
		var url="__URL__/goods_list/?cat="+cat+"&post="+post;
		$("#list").attr("src",url);
	})
	$("[name=ispost]").blur(function(){
	    var cat=$("[name=cat]").val();
		var post=$("[name=ispost]").val();
		var url="__URL__/goods_list/?cat="+cat+"&post="+post;
		$("#list").attr("src",url);
	})
	$("[name=bn]").blur(function(){
		var id=$("[name=bn]").val();
		var url="__URL__/goods_list/?id="+id;
		$("#list").attr("src",url);
	})
	$("[name=goods_name]").blur(function(){
		var id=encodeURI($("[name=goods_name]").val());
		var url="__URL__/goods_list/?name="+id;
		$("#list").attr("src",url);
	})
})
</script>

<iframe id="list"  width="100%" height="470px" src="__URL__/goods_list"></iframe>